import { findBanner } from '@/api/home'
import { ref } from 'vue'
const useBanner = () => {
  const bannerList = ref([])

  // eslint-disable-next-line space-before-function-paren
  async function loadBannerList() {
    const res = await findBanner()
    bannerList.value = res.result
  }

  loadBannerList()

  return bannerList
}

export {
  useBanner
}
